package com.zxm.result;

import java.io.Serializable;

public class GuhealthResult implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 2713808620857278956L;

	//状态码
	private Integer status;
	//描述信息
	private String message;
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	//成功
	public static GuhealthResult success() {
		GuhealthResult result = new GuhealthResult();
		result.setStatus(200);
		result.setMessage("成功");
		return result;
	}
	
	//失败
	public static GuhealthResult fail() {
		GuhealthResult result = new GuhealthResult();
		result.setStatus(400);
		result.setMessage("失败");
		return result;
	}
	
	
}
